<?php
/**
 * XGPHP 轻量级PHP框架
 * @link http://xgphp.xg3.cn
 * @version 2.0.0
 * @license http://www.apache.org/licenses/LICENSE-2.0
 * @author 讯高科技 <xungaokeji@qq.com>
*/
namespace xg\response;

class Redirect extends \xg\Response {
	public function redirect($url = '', int $code = 302) {
		$this->header('Location', $url);
		$this->code($code);
		$this->done();
	}
}
?>